<?php
session_start();
if(empty($_SESSION['user']['user_id']))
{
	echo "<script>alert('Favor efetuar o login');location.href='".$pre."index.php'</script>";	
}
?>